﻿using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tippelde.Services.Dtos;

namespace Tippelde.Services.News
{
    public interface INewsManager
    {
        List<NewsHeaderData> GetTopNews(string userName, int? count);
        IPagedList<NewsWithRightsData> GetNews(string userName, int? page);
        IPagedList<NewsWithRightsData> GetNewsForGroup(string userName, int groupId, int? page);

        NewsWithRightsData GetNews(string userName, int newsId);
        NewsWithRightsData GetNews(string userName, string seoUrl);

        void Create(string creatorName, NewsHeaderData news, List<int> groupsIds, string contentShortParsed);
        void Edit(string editorName, NewsHeaderData news, List<int> groupsIds, string contentShortParsed);

        void Delete(int newsId);
    }
}
